package o;

import java.util.Locale;

public class efy {
    private int ʻ;
    private boolean ʼ;
    private String ˊ;
    private String ˋ;
    efz ˎ = ((efz) egv.ॱᐝ());
    private String ˏ;
    private c ॱ;
    private String ॱॱ;

    public interface c {
        void ͺ();

        void ᐝ();
    }

    public efy(String str, String str2) {
        this.ˊ = str;
        this.ˋ = str2;
    }

    public void ॱ(String str) {
        this.ˏ = str;
    }

    public void ˎ(int i) {
        this.ʻ = i;
    }

    public void ॱ(c cVar) {
        this.ॱ = cVar;
    }

    public void ॱ(boolean z) {
        this.ʼ = z;
    }

    public void ˊ(int i, String str) {
        this.ʻ = i;
        this.ॱॱ = str;
        ॱ();
    }

    public void ॱ() {
        if (ˋ()) {
            this.ॱ.ͺ();
            return;
        }
        ˏ();
        egy.ॱ().ˎ(1);
        this.ॱ.ᐝ();
    }

    private void ˏ() {
        Logger.ˎ("BaseRestrictionDelegate", "handleGradeOnExit forceReboot:" + this.ʼ);
        if (this.ʻ != this.ˎ.ॱˊ()) {
            ᐝ();
            return;
        }
        this.ˎ.ॱ();
        if (this.ʼ) {
            this.ˎ.ˋˊ();
        }
    }

    protected boolean ˋ() {
        if (egv.ˊ(this.ʻ, this.ˎ.ॱˊ())) {
            return true;
        }
        return ˊ();
    }

    protected boolean ˊ() {
        return false;
    }

    public void ˎ() {
        ˏ();
        egy.ॱ().ˎ(1);
        this.ॱ.ᐝ();
    }

    private void ᐝ() {
        Logger.ˎ("BaseRestrictionDelegate", String.format(Locale.ENGLISH, "doChangeGrade to:%s forceReboot:%s", new Object[]{String.format(Locale.ENGLISH, "%s|%s|%s", new Object[]{eqp.ॱ(), Integer.valueOf(this.ʻ), this.ˏ}), Boolean.valueOf(this.ʼ)}));
        this.ˎ.ˊ(r0, this.ʼ);
        egt.ˊ(this.ˎ.ॱˋ(), this.ॱॱ, this.ˊ);
    }
}
